class BudgetAddForm {
  String name;
  String goal;
  String type = 'ONE_TIME';
  List<dynamic> owners;
  List<dynamic> members;
  String expirationDate;
  String desc;
  String id;

  BudgetAddForm(
      {this.name,
      this.goal,
      this.type,
      this.owners,
      this.members,
      this.expirationDate,
      this.id,
      this.desc});

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['goal'] = this.goal;
    data['type'] = this.type;
    if (this.owners != null) {
      data['owners'] = this.owners.map((v) => v.toJson()).toList();
    }
    if (this.members != null) {
      data['members'] = this.members.map((v) => v.toJson()).toList();
    }
    if (this.id != null) {
      data['id'] = this.id;
    }
    data['expirationDate'] = this.expirationDate;
    data['desc'] = this.desc;
    return data;
  }
}
